package com.xbongbong.paas.pojo.workflow.settings;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author 吴峰
 * @date 2021/06/01 10:30
 */
@Getter
@Setter
@ToString
public class WorkflowVersionPojo implements Serializable {
    private static final long serialVersionUID = 5531378347954328340L;

    /**
     * 流程模板id
     */
    private Long workflowId;

    private String version;
    /**
     * 版本id
     */
    private Integer versionId;
    /**
     * 版本名称
     */
    private String versionName;
    /**
     * 版本类型 1：设计 2：启用 3：历史
     */
    private Integer versionType;
    /**
     * 1：当前使用版本 0: 其他版本
     */
    private Integer currentVersion;

    public WorkflowVersionPojo() {
    }

    public WorkflowVersionPojo(Long workflowId, String version, Integer versionId, String versionName, Integer versionType, Integer currentVersion) {
        this.workflowId = workflowId;
        this.version = version;
        this.versionId = versionId;
        this.versionName = versionName;
        this.versionType = versionType;
        this.currentVersion = currentVersion;
    }
}
